<template>
  <div class="section-header">
    <h2>Latest Article</h2>
  </div>
  <div class="blog__wrapper">
    <div class="row g-4">
      <div
        v-for="(item, index) in posts.slice(0, 3)"
        :key="index"
        class="col-lg-4 col-md-6"
        data-aos="fade-up"
        data-aos-duration="600"
      >
        <BlogCard :details="item" />
      </div>
    </div>
  </div>
</template>

<script>
import BlogCard from "@/components/partials/BlogCard.vue";
export default {
  components: { BlogCard },
  props: {
    posts: {
      type: Array,
      default: () => [],
    },
  },
};
</script>

<style></style>